package services;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import modelo.TelefonoSalon;
import dao.TelefonoSalonDao;

@ManagedBean(name="telefonoSalonService", eager = true)
@ApplicationScoped
public class TelefonoSalonService implements Serializable {

	private static final long serialVersionUID = 4481319647608126699L;
	
	private TelefonoSalon telefonoSalon; 
    private List<TelefonoSalon> listaTelefonoSalon=new ArrayList<TelefonoSalon>();
    private TelefonoSalonDao telefonoSalonDao=new TelefonoSalonDao();
    
    public TelefonoSalonService() {
		super();
	}

	@PostConstruct
    public void init() {
//    	listaTelefonoSalon=telefonoSalonDao.obtenerTelefonosSalon();
    }

	public TelefonoSalon getTelefonoSalon() {
		return telefonoSalon;
	}

	public void setTelefonoSalon(TelefonoSalon telefonoSalon) {
		this.telefonoSalon = telefonoSalon;
	}

	public List<TelefonoSalon> getListaTelefonoSalon() {
		return listaTelefonoSalon;
	}

	public void setListaTelefonoSalon(List<TelefonoSalon> listaTelefonoSalon) {
		this.listaTelefonoSalon = listaTelefonoSalon;
	}

	public TelefonoSalonDao getTelefonoSalonDao() {
		return telefonoSalonDao;
	}

	public void setTelefonoSalonDao(TelefonoSalonDao telefonoSalonDao) {
		this.telefonoSalonDao = telefonoSalonDao;
	}
    
    

	
    
}